import {wx} from '../../../weixin2alipay/index.js';
import {Page,Component} from '../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'新增联系人',
        "path":'packageAPI/pages/add-contact/add-contact'
};
    },
    "submit"(e){
      const formData = e.detail.value;
      wx.addPhoneContact({
        ...formData,
        "success"(){
          wx.showToast({
            "title":'联系人创建成功'
});
        },
        "fail"(){
          wx.showToast({
            "title":'联系人创建失败'
});
        }
});
    }
});

